package NewOOP.prot;

public class TsetUSB {
    public static void main(String[] args) {
        Computer computer = new Computer();
        computer.powerOn();

        //鼠标使用USB接口
        computer.useUSB(new Mouse());

        //键盘使用USB接口
        computer.useUSB(new KeyBoard());


        computer.powerOff();
    }
}
